<?php
/**
 * CustStockOutReturnReason
 */
class CSoRR extends AppModel {
    var $name = 'CSoRR';

    var $useTable = 'cust_stock_out_return_reasons';

    var $belongsTo = array(
        'Customer', 'Site',
        'User' => array('foreignKey' => 'collector_id')
    );

    var $validate = array(
            'title' => array(
                            'notEmpty' => array(
                                            'rule' => array('notEmpty'),
                                            'message' => 'Title is required.',
                                            'required' => true,
                            ),
            ),
            'site_id' => array(
                            'notEmpty' => array(
                                            'rule' => array('notEmpty'),
                                            'message' => 'Site is required.',
                                            'required' => true,
                            ),
            )
    );
}
?>
